<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <!--  取消元素的默认事件行为  -->
    <form v-on:submit.prevent="onSubmit">
        <input type="button" value="提交">
    </form>

</div>

<script src="../js/vue.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {},
        methods: {
            onSubmit() {
                console.log('触发事件特定调用我这个方法')
            }
        }
    })
</script>
</body>
</html>